package com.Ajava1704.for设计模式.for动态代理.JDK代理02;

import com.alibaba.fastjson.JSON;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * 作者: LCG
 * 日期: 2020/6/27 22:46
 * 描述:
 */
public class TestHandler implements InvocationHandler {


    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

        System.out.println(JSON.toJSONString(args)+"============="+method.getName());

        return null;
    }


}
